<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>metisMenu</title>

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css">
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="metisMenu.min.css">
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.4.1/themes/prism.min.css">

    <style>
      @media (min-width: 768px) {
        #menu li {
          position: relative;
        }
        #menu > li ul {
          position: absolute;
          left: 100%;
          top: 0;
          min-width: 200px;
          display: none;
        }
        #menu li:hover > ul,
        #menu li:hover > ul.collapse {
          display: block !important;
          height: auto !important;
          z-index: 1000;
          background: #444;
          visibility: visible;
        }
      }

    </style>
    <style>
      @media (max-width: 767px) {
        section.content {
          float: left;
          width: 100%;
        }
      }

    </style>
    <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]-->
  </head>

  <body>

    <nav class="navbar navbar-default navbar-static-top" role="navigation">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="index.html">metisMenu</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav">
            <li>
              <a href="index.html">Vertical Menu</a>
            </li>
            <li>
              <a href="metisFolder.html">Folder View</a>
            </li>
            <li class="active">
              <a href="hover.html">Hover Option For Desktop</a>
            </li>
            <li>
              <a href="zurb.html">Foundation | Zurb</a>
            <li>
              <a href="animate.html">Animate</a>
            </li>
            <li>
              <a href="event.html">Event</a>
            </li>
          </ul>
        </div>
        <!-- /.navbar-collapse -->
      </div>
      <!-- /.container-fluid -->
    </nav>

    <div class="clearfix">
      <aside class="sidebar">
        <nav class="sidebar-nav">
          <ul class=metismenu id="menu">
            <li class="active">
              <a href="#">
                <span class="sidebar-nav-item-icon fa fa-github fa-lg"></span>
                <span class="sidebar-nav-item">metisMenu</span>
                <span class="fa arrow"></span>
              </a>
              <ul>
                <li>
                  <a href="https://github.com/onokumus/metisMenu">
                    <span class="sidebar-nav-item-icon fa fa-code-fork"></span>
                    Fork
                  </a>
                </li>
                <li>
                  <a href="https://github.com/onokumus/metisMenu">
                    <span class="sidebar-nav-item-icon fa fa-star"></span>
                    Star
                  </a>
                </li>
                <li>
                  <a href="https://github.com/onokumus/metisMenu/issues">
                    <span class="sidebar-nav-item-icon fa fa-exclamation-triangle"></span>
                    Issues
                  </a>
                </li>
              </ul>
            </li>
            <li>
              <a href="#">Menu 0
                <span class="fa arrow"></span>
              </a>
              <ul>
                <li>
                  <a href="#">item 0.1</a>
                </li>
                <li>
                  <a href="#">item 0.2</a>
                </li>
                <li>
                  <a href="http://onokumus.com">onokumus</a>
                </li>
                <li>
                  <a href="#">item 0.4</a>
                </li>
              </ul>
            </li>
            <li>
              <a href="#">Menu 1
                <span class="glyphicon arrow"></span>
              </a>
              <ul>
                <li>
                  <a href="#">item 1.1</a>
                </li>
                <li>
                  <a href="#">item 1.2</a>
                </li>
                <li>
                  <a href="#">Menu 1.3
                    <span class="fa plus-times"></span>
                  </a>
                  <ul>
                    <li>
                      <a href="#">item 1.3.1</a>
                    </li>
                    <li>
                      <a href="#">item 1.3.2</a>
                    </li>
                    <li>
                      <a href="#">item 1.3.3</a>
                    </li>
                    <li>
                      <a href="#">item 1.3.4</a>
                    </li>
                  </ul>
                </li>
                <li>
                  <a href="#">item 1.4</a>
                </li>
                <li>
                  <a href="#">Menu 1.5
                    <span class="fa plus-minus"></span>
                  </a>
                  <ul>
                    <li>
                      <a href="#">item 1.5.1</a>
                    </li>
                    <li>
                      <a href="#">item 1.5.2</a>
                    </li>
                    <li>
                      <a href="#">item 1.5.3</a>
                    </li>
                    <li>
                      <a href="#">item 1.5.4</a>
                    </li>
                  </ul>
                </li>
              </ul>
            </li>
            <li>
              <a href="#">Menu 2
                <span class="glyphicon arrow"></span>
              </a>
              <ul>
                <li>
                  <a href="#">item 2.1</a>
                </li>
                <li>
                  <a href="#">item 2.2</a>
                </li>
                <li>
                  <a href="#">item 2.3</a>
                </li>
                <li>
                  <a href="#">item 2.4</a>
                </li>
              </ul>
            </li>
          </ul>
        </nav>
      </aside>

      <section class="content">
        <div class="col-xs-12">
          <h3>Please resize your browser window</h3>
        </div>
      </section>
    </div>

    <script src="jquery/dist/jquery.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>
    <script src="metisMenu.min.js"></script>

    <script>
      $(function() {
        $('#menu').metisMenu();
      });
    </script>

    <script>
      (function($) {
        $(document).ready(function() {

          var $this = $('#menu'),
            resizeTimer,
            self = this;

          var initCollapse = function(el) {
            if ($(window).width() >= 768) {
              this.find('li').has('ul').children('a').off('click');
            }
          };

          $(window).resize(function() {
            clearTimeout(resizeTimer);
            resizeTimer = setTimeout(self.initCollapse($this), 250);
          });

        });
      })(jQuery);
    </script>

    <script src="//cdnjs.cloudflare.com/ajax/libs/prism/1.4.1/prism.min.js"></script>
  </body>

</html>
